<?php
    include("../inc/functions.php");
    include("../inc/db.class.php");
    //include("../inc/connection.php");
    $nmbr=rand(100, 1700);
    $database = new database();
    $query="select captcha_value from captcha where captcha_number='$nmbr'";
    $rec = $database->query($query);
    $res = mysql_fetch_object($rec);
    echo $nmbr."_".$res->captcha_value;
?>